Repository navigation
test: no test reaches a real server - #240
Merged
Merged
Conversation
The unit-test task routes every connection to a host other than this machine to a SOCKS proxy that does not exist, so a request that would reach a server fails at once. This machine (MockWebServer), hosts of the reserved .test domain that tests map to it with their own DNS, and Maven Central, where Robolectric fetches its Android jars on a fresh machine, stay direct. http and https URLs read http.nonProxyHosts, so both lists carry the exemptions. NoLiveServerGuardTest pins the guard.
…ck: orders/by_user and orders/last_for_user, their params, the documented answers and errors
They checked the work of a real server and a real shop, not the SDK's contract, and every contract they touched is pinned on a mock: profile, counters, category, loyalty, orders, the tracking namespace and purchase, two shops in one process, both cores. The demo's test runner, which only served the live core test, goes with them.
…he mirror Maven Central sends them to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.testhosts and Maven Central (Robolectric's jars) stay direct.NoLiveServerGuardTestpins it.OrdersManagerImplTestchecksorders/by_userandorders/last_for_useragainst the documented requests and answers.